package com.hlhj.funlike_business.bean;

import java.util.List;

public class OrderListBean {

    /**
     * code : 1
     * msg : 请求成功
     * data : {"total":81,"per_page":10,"current_page":1,"last_page":9,"data":[{"id":224,"price":"50.36","status":20,"goods_num":1,"is_comment":1,"goods_total_num":2,"goods":[{"goods_name":"干锅四季豆","attr_name":"","num":2,"img":"http://waimai.wufenhuyu.com/upload/goods/20190102/68449fa9288029e79c311d5fba87f96a.jpg"}],"address":{"name":"范冰冰","mobile":"13812345678","address_detail":"四川省成都市武侯区天府五街200号","sex":2,"img":"https://wx.qlogo.cn/mmopen/vi_32/8eGCSSKSeu0n11WGlDFyfPYSWYn5wIxmWY01tgEZhyrY9XQD1dibrphibs1oick0uOjqznTLIzbQZ7NU1YtBuU7Pg/132"}}],"page":[]}
     */

    private int code;
    private String msg;
    private DataBeanX data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBeanX getData() {
        return data;
    }

    public void setData(DataBeanX data) {
        this.data = data;
    }

    public static class DataBeanX {
        /**
         * total : 81
         * per_page : 10
         * current_page : 1
         * last_page : 9
         * data : [{"id":224,"price":"50.36","status":20,"goods_num":1,"is_comment":1,"goods_total_num":2,"goods":[{"goods_name":"干锅四季豆","attr_name":"","num":2,"img":"http://waimai.wufenhuyu.com/upload/goods/20190102/68449fa9288029e79c311d5fba87f96a.jpg"}],"address":{"name":"范冰冰","mobile":"13812345678","address_detail":"四川省成都市武侯区天府五街200号","sex":2,"img":"https://wx.qlogo.cn/mmopen/vi_32/8eGCSSKSeu0n11WGlDFyfPYSWYn5wIxmWY01tgEZhyrY9XQD1dibrphibs1oick0uOjqznTLIzbQZ7NU1YtBuU7Pg/132"}}]
         * page : []
         */

        private int total;
        private int per_page;
        private int current_page;
        private int last_page;
        private List<DataBean> data;
        private List<?> page;

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public int getPer_page() {
            return per_page;
        }

        public void setPer_page(int per_page) {
            this.per_page = per_page;
        }

        public int getCurrent_page() {
            return current_page;
        }

        public void setCurrent_page(int current_page) {
            this.current_page = current_page;
        }

        public int getLast_page() {
            return last_page;
        }

        public void setLast_page(int last_page) {
            this.last_page = last_page;
        }

        public List<DataBean> getData() {
            return data;
        }

        public void setData(List<DataBean> data) {
            this.data = data;
        }

        public List<?> getPage() {
            return page;
        }

        public void setPage(List<?> page) {
            this.page = page;
        }

        public static class DataBean {
            /**
             * id : 224
             * price : 50.36
             * status : 20
             * goods_num : 1
             * is_comment : 1
             * goods_total_num : 2
             * goods : [{"goods_name":"干锅四季豆","attr_name":"","num":2,"img":"http://waimai.wufenhuyu.com/upload/goods/20190102/68449fa9288029e79c311d5fba87f96a.jpg"}]
             * address : {"name":"范冰冰","mobile":"13812345678","address_detail":"四川省成都市武侯区天府五街200号","sex":2,"img":"https://wx.qlogo.cn/mmopen/vi_32/8eGCSSKSeu0n11WGlDFyfPYSWYn5wIxmWY01tgEZhyrY9XQD1dibrphibs1oick0uOjqznTLIzbQZ7NU1YtBuU7Pg/132"}
             */

            private int id;
            private String price;
            private int status;     //订单状态 20待接单 21已接单 30 配送中 40 已完成 50 已取消，60已退单
            private int goods_num;
            private int is_comment;
            private int goods_total_num;
            private AddressBean address;
            private List<GoodsBean> goods;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public int getGoods_num() {
                return goods_num;
            }

            public void setGoods_num(int goods_num) {
                this.goods_num = goods_num;
            }

            public int getIs_comment() {
                return is_comment;
            }

            public void setIs_comment(int is_comment) {
                this.is_comment = is_comment;
            }

            public int getGoods_total_num() {
                return goods_total_num;
            }

            public void setGoods_total_num(int goods_total_num) {
                this.goods_total_num = goods_total_num;
            }

            public AddressBean getAddress() {
                return address;
            }

            public void setAddress(AddressBean address) {
                this.address = address;
            }

            public List<GoodsBean> getGoods() {
                return goods;
            }

            public void setGoods(List<GoodsBean> goods) {
                this.goods = goods;
            }

            public static class AddressBean {
                /**
                 * name : 范冰冰
                 * mobile : 13812345678
                 * address_detail : 四川省成都市武侯区天府五街200号
                 * sex : 2
                 * img : https://wx.qlogo.cn/mmopen/vi_32/8eGCSSKSeu0n11WGlDFyfPYSWYn5wIxmWY01tgEZhyrY9XQD1dibrphibs1oick0uOjqznTLIzbQZ7NU1YtBuU7Pg/132
                 */

                private String name;
                private String mobile;
                private String address_detail;
                private int sex;
                private String img;

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getMobile() {
                    return mobile;
                }

                public void setMobile(String mobile) {
                    this.mobile = mobile;
                }

                public String getAddress_detail() {
                    return address_detail;
                }

                public void setAddress_detail(String address_detail) {
                    this.address_detail = address_detail;
                }

                public int getSex() {
                    return sex;
                }

                public void setSex(int sex) {
                    this.sex = sex;
                }

                public String getImg() {
                    return img;
                }

                public void setImg(String img) {
                    this.img = img;
                }
            }

            public static class GoodsBean {
                /**
                 * goods_name : 干锅四季豆
                 * attr_name :
                 * num : 2
                 * img : http://waimai.wufenhuyu.com/upload/goods/20190102/68449fa9288029e79c311d5fba87f96a.jpg
                 */

                private String goods_name;
                private String attr_name;
                private int num;
                private String img;

                public String getGoods_name() {
                    return goods_name;
                }

                public void setGoods_name(String goods_name) {
                    this.goods_name = goods_name;
                }

                public String getAttr_name() {
                    return attr_name;
                }

                public void setAttr_name(String attr_name) {
                    this.attr_name = attr_name;
                }

                public int getNum() {
                    return num;
                }

                public void setNum(int num) {
                    this.num = num;
                }

                public String getImg() {
                    return img;
                }

                public void setImg(String img) {
                    this.img = img;
                }
            }
        }
    }
}
